package com.resttest.ljs.service;

import com.itextpdf.text.DocumentException;
import com.resttest.ljs.util.PDFDocHelper;
import com.resttest.ljs.util.PdfHelper;

import java.io.IOException;
import java.util.*;

public class PdfTest {

    public static void main(String[] args) throws IOException, DocumentException {
       /* String filePath="E:\\TEST_320600_214E59021YJ8C8LK1111.pdf";
        String key = "签章：";
        float[] keyWordsByPath = PdfHelper.getKeyWordsByPath(filePath, key);
        for (int i = 0; i<keyWordsByPath.length;i++){
            System.out.println(keyWordsByPath[i]);
        }
        float x = keyWordsByPath[0] +170;
        float y = keyWordsByPath[1];
        List<Map<String,?>> reviews = new ArrayList<>();
        Map<String ,String> review = new HashMap<>();
        review.put("result","approved");
        review.put("type","1");
        review.put("x",Float.toString(x));
        review.put("y",Float.toString(y));
        reviews.add(review);
        PDFDocHelper.signPsw(filePath,reviews);*/
        System.out.println(new Date());
    }
}
